<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="2.0"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:skos="http://www.w3.org/2004/02/skos/core#"
    xmlns:my="http://www.w3.org/2005/Atom" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:os="http://a9.com/-/spec/opensearch/1.1/" exclude-result-prefixes="my">
    <xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes"/>
     <!-- special rule for the document element -->
    <xsl:template match="/">
        <rdf:RDF 
            xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	        xmlns:skos="http://www.w3.org/2004/02/skos/core#"
	        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	        xmlns:dc="http://purl.org/dc/elements/1.1/"
	        xmlns:dcterms="http://purl.org/dc/terms/"
	        xmlns:foaf="http://xmlns.com/foaf/0.1/">
            <xsl:for-each select="//my:entry">
                <skos:Concept>
                    <xsl:attribute name="rdf:about">
                        <xsl:value-of select="my:id"/>
                    </xsl:attribute>
                    <skos:prefLabel>
                        <xsl:attribute name="xml:lang">
                            <xsl:value-of select="my:title/@xml:lang"/>
                        </xsl:attribute>
                        <xsl:value-of select="my:title"/>
                    </skos:prefLabel>
                </skos:Concept>      
            </xsl:for-each>
        </rdf:RDF>
    </xsl:template>
</xsl:stylesheet>
